/*
 * @Author: zhangjingyu
 * @Date: 2020-12-23 15:25:18
 * @LastEditors: zhangjingyu
 * @LastEditTime: 2021-04-23 16:54:27
 * @FilePath: \vprisk10.14\src\lib\cssAuto.js
 * @Description: css各浏览器版本兼容性
 */
// 判断浏览器物种

if ((window.navigator.userAgent.indexOf("MSIE") != -1) || (!!navigator.userAgent.match(/Trident.*rv\./))
||(!!window.ActiveXObject||"ActiveXObject" in window||window.showModalDialog)) {
              console.log("我是ie");
                import('@/assets/scss/IE/index.scss')
            if (window.navigator.userAgent.indexOf("MSIE 6.0") > 0)//IE 6.0
            {
                console.log("我是ie6");
            }
            else if (window.navigator.userAgent.indexOf("MSIE 7.0") > 0)//IE 7.0 
            {
                console.log("我是ie7");
            }
            else if (window.navigator.userAgent.indexOf("MSIE 8.0") > 0)//IE 8.0
            {
             console.log("我是ie8");
                }
        }
        else if (window.navigator.userAgent.indexOf("Netscape") != -1)//我是Netscape
        {
            console.log("Netscape");
        }
        else if (window.navigator.appName.indexOf("Opera") != -1) //我是opera
        {
            console.log("Opera");
        }
        else if (window.navigator.userAgent.indexOf("Firefox") != -1)//我是Firefox
        {
            console.log("Firefox");
          import('@/assets/scss/firefox/index.scss')
        }
        else if (window.navigator.userAgent.indexOf("Chrome") != -1)//我是chrom
        {
            console.log("Chrome");
        }
       else if (window.navigator.userAgent.indexOf("Safari") != -1)//我是chrom
        {
            console.log("Safari");
        }else{
            
        }